package com.coffee.concurrent;

/**
 * 使用系统属性定义特定配置项的键并提供该配置项的默认值
 * Define the key for a certain config item using system property,
 *   and provide the default value for that config item.
 *
 * @version $Id: Configs.java, v 0.1 2017-08-03 19:21 tsui Exp $
 * from netty
 */
public class ExecutorConfigs {


    /**
     * Thread pool min size for the default executor.
     */
    public static final String TP_MIN_SIZE                           = "zebra.tp.min";
    public static final String TP_MIN_SIZE_DEFAULT                   = "64";


    public static final String TSP_MIN_SIZE                           = "zebra.tsp.min";
    public static final String TSP_MIN_SIZE_DEFAULT                   = "80";

    /**
     * Thread pool max size for the default executor.
     */
    public static final String TP_MAX_SIZE                           = "zebra.tp.max";
    public static final String TP_MAX_SIZE_DEFAULT                   = "600";

    /**
     * Thread pool queue size for the default executor.
     */
    public static final String TP_QUEUE_SIZE                         = "zebra.tp.queue";
    public static final String TP_QUEUE_SIZE_DEFAULT                 = "800";

    /**
     * Thread pool keep alive time for the default executor
     */
    public static final String TP_KEEPALIVE_TIME                     = "zebra.tp.keepalive";
    public static final String TP_KEEPALIVE_TIME_DEFAULT             = "60";


    /** Charset */
    public static final String DEFAULT_CHARSET                       = "UTF-8";
}